{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 1,
   "id": "c20c2643-4adc-46e6-a68d-d1a7a43e64ed",
   "metadata": {},
   "outputs": [],
   "source": [
    "from functools import partial"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 2,
   "id": "17e35cbd-a729-4793-acac-dff12bcc312f",
   "metadata": {},
   "outputs": [],
   "source": [
    "int2 = partial(int, base =2 )"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 3,
   "id": "e8b01365-5fab-497d-8b65-652b1e2b9bdd",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "32"
      ]
     },
     "execution_count": 3,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "int2('100000')"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 4,
   "id": "0a004f15-252a-4597-be63-0a2ef41db014",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "128"
      ]
     },
     "execution_count": 4,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "int2('10000000')"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 6,
   "id": "273e1979-f6ca-4f0c-942b-b76eeb4754fb",
   "metadata": {},
   "outputs": [],
   "source": [
    "max2 = partial(max ,10)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 7,
   "id": "4cd414a9-1a5d-48e7-b701-36863293180b",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "10"
      ]
     },
     "execution_count": 7,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "max2(5,6,7)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 8,
   "id": "04908139-546a-4116-885b-868f24483b51",
   "metadata": {},
   "outputs": [],
   "source": [
    "import sys"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 9,
   "id": "d83aa32e-b672-47b9-a51a-f381bc42d6c5",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "['C:\\\\Users\\\\79065\\\\.conda\\\\envs\\\\chatgpt\\\\python39.zip',\n",
       " 'C:\\\\Users\\\\79065\\\\.conda\\\\envs\\\\chatgpt\\\\DLLs',\n",
       " 'C:\\\\Users\\\\79065\\\\.conda\\\\envs\\\\chatgpt\\\\lib',\n",
       " 'C:\\\\Users\\\\79065\\\\.conda\\\\envs\\\\chatgpt',\n",
       " '',\n",
       " 'C:\\\\Users\\\\79065\\\\.conda\\\\envs\\\\chatgpt\\\\lib\\\\site-packages',\n",
       " 'C:\\\\Users\\\\79065\\\\.conda\\\\envs\\\\chatgpt\\\\lib\\\\site-packages\\\\win32',\n",
       " 'C:\\\\Users\\\\79065\\\\.conda\\\\envs\\\\chatgpt\\\\lib\\\\site-packages\\\\win32\\\\lib',\n",
       " 'C:\\\\Users\\\\79065\\\\.conda\\\\envs\\\\chatgpt\\\\lib\\\\site-packages\\\\Pythonwin']"
      ]
     },
     "execution_count": 9,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "sys.path"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "88ad4f4f-e18c-413d-8898-3d92a2797392",
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3 (ipykernel)",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.9.21"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}
